<template>
	<el-config-provider :locale="zhCn">
		<router-view />
		<SeriesMoveBlock v-if="dragSeriesStore.dragBlock.show" :cfg="dragSeriesStore.dragBlock" />
	</el-config-provider>
</template>

<script setup lang="ts">
import Schema from 'async-validator'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import SeriesMoveBlock from "@/components/SeriesMoveBlock/index.vue";
import useDragSeriesStore from '@/store/modules/dragSeries'
const dragSeriesStore = useDragSeriesStore()
onMounted(() => {
  nextTick(() => {
    // 初始化主题样式
    document.oncontextmenu = e => e.preventDefault();
    Schema.messages.required = fieldName => {
      return '该项为必填项'
    }
  })
})
</script>

<style>
@font-face {
  font-family: 'iconfont';
  src: url('./assets/i/iconfont.ttf?t=1690429080736') format('truetype');
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}
</style>
